package com.tyg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tyg.entity.MenuInfo;
import com.tyg.mapper.MenuInfoMapper;
import com.tyg.service.MenuInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author zhangjingnan
 * @since 2022-10-22
 */
@Service
@Transactional
public class MenuInfoServiceImpl extends ServiceImpl<MenuInfoMapper, MenuInfo> implements MenuInfoService {

    @Autowired
    MenuInfoMapper menuInfoMapper;

    @Override
    public List<MenuInfo> getMenuList(Map<String, Object> map) {
        return menuInfoMapper.getMenuList(map);
    }

    @Override
    public List<MenuInfo> selectList(QueryWrapper<MenuInfo> queryWrapper) {
        return menuInfoMapper.selectList(queryWrapper);
    }
}
